#!/usr/bin/env bash


for i in 1 2 3; do
    touch xx_${i}_delete.jpg
done
$? || echo "创建成功"
sleep 5
for i in $(ls |grep '_delete.jpg'); do
    mv  -f $i ${i/_delete.jpg/.jpg}
done
$? || echo "重命名成功"
